from utils import http_util
from methods import f短线狙击 as dxjj
from service import get_all_plates_info_v1 as gpi, get_gp_funds_info_v1 as gfi, diagnosis_one_key as dok
from task import b4 as bi

__author__ = 'Administrator'

if __name__ == '__main__':
    print("主线程开始")
    print('1.功能一、获取板块前五')
    print('2.功能二、短线狙击')
    print('3.功能三、初始化基本参数(K+MACD)')
    print('4.功能四、校验步骤三数据')
    print('5.功能五、刷新月信息(K+MACD)')
    print('6.功能六、监控数据持久化')
    print('7.功能七、刷新所有的板块信息')
    print('8.功能八、刷新所有的基金信息')
    print('9.功能九、刷新日信息')
    print('10.功能十、闭市刷新数据')
    print('11.功能十一、诊断持久化')
    select = input('输入功能选项***********:')
    if select == '1':
        http_util.get_plate_good_stock()
    if select == '2':
        dxjj.sniper()
    if select == '3':
        bi.add_new_task()
    if select == '4':
        bi.check_data()
    if select == '5':
        bi.fresh_month_info()
    if select == '6':
        bi.persistence_data()
    if select == '7':
        gpi.get_all_paltes_info()
    if select == '8':
        gfi.get_info()
    if select == '9':
        bi.fresh_day_info()
    if select == '10':
        bi.fresh_task_close()
    if select == '11':
        dok.persistence_diagnosis([])
    print("主线程结束")
